Passed
Push — develop ( a05353...e2fd1b )
by Endre
04:09
created

Style.render   A

Complexity

Conditions 2

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 2

Importance

Changes 0
Metric Value
cc 2
eloc 3
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 2
rs 10
c 0
b 0
f 0
1
import React from 'react';
2
3
interface IProperties {
4
  source: string,
5
  external?: boolean
6
}
7
8
interface IState {
9
}
10
11
export default class Style extends React.Component<IProperties, IState> {
12
  render() {
13 7
    const source: string = this.props.external ? this.props.source : './Style/' + this.props.source + '.css';
14 7
    return <link rel="stylesheet" href={source} />;
15
  }
16
}